// ********************************添加用户
$(function() {
    let layer;
    layui.use(['layer'], function() {
        layer = layui.layer
        $('form').on('submit', function(e) {
            e.preventDefault()
            let data = $(this).serialize()
            $.ajax({
                url: '/admin/users',
                type: 'POST',
                data: data,
                success: function(res) {
                    layer.msg(res.message)
                    console.log(res);
                }

            })
        })
    })
})